package com.tianqu.tms.core.webservice;

import javax.jws.WebService;

@WebService(endpointInterface="com.tianqu.tms.core.webservice.TmsInfoService",serviceName="TmsInfoService")
public class TmsInfoServiceImp implements TmsInfoService {

	/**
	 * 用户信息
	 * @return
	 */
	@Override
	public String DownloadUsers() {
		 return TmsXmlResolveController.user();
	}
	/**
	 * 交易车辆查验车辆基本信息、图片数据同步上传
	 * wancheng
	 * @return
	 */
	@Override
	public String uploadCheckCarsInfos(String serial,String flag,String licenseplate,String vin,String cy_cardtype,String businesstype,String vinnum,
			String enginenum,String brandmodel,String cy_color,String cy_passenger,String cy_cartype,String plateortireexterior,String tireIntact,
			String seatbelt,String numberAxes,String tiresize,String lateralportionof,String reflectivemark,String fireextinguisher,
			String drivingrecord,String security,String externalmarking,String siren,String securitytechnology,String checkconclusion,
			String photo_1,String photo_2,String photo_3,String photo_4,String userid,String inserttime) 
	{
		 return TmsXmlResolveController.checkCarInfo(serial,flag,licenseplate,vin,cy_cardtype,businesstype,vinnum,	
				 enginenum,brandmodel,cy_color,cy_passenger,cy_cartype,plateortireexterior,tireIntact,
				 seatbelt,numberAxes,tiresize,lateralportionof,reflectivemark,fireextinguisher,
				 drivingrecord,security,externalmarking,siren,securitytechnology,checkconclusion,
				 photo_1,photo_2,photo_3,photo_4,userid,inserttime
		 );
	}
	
	/**
	 * 交易车辆查验车辆基本信息、图片数据同步下载
	 */
	@Override
	public String downCheckCarsInfos(String serial,String licenseplate ) {
		// TODO Auto-generated method stub
		return TmsXmlResolveController.loadCarInfo(serial,licenseplate);
	}
	/**
	 *  库存查验车辆基本信息、图片数据同步
	 */
	@Override
	public String uploadMarketCarsInfos(String licensePlate, String memberId,
			String mileage, String price, String carImages_1,
			String carImages_2, String carImages_3, String carImages_4,String carImages_5,String carImages_6,String carImages_7,String carImages_8,String userId,String insertTime) {
//		return TmsXmlResolveController.loadMarketCarInfo(licensePlate,memberId,mileage,price,carImages_1,carImages_2,carImages_3,carImages_4,carImages_5,carImages_6,carImages_7,carImages_8,userId,insertTime);
	    return "1";//保留PAD接口,因为pad程序不修改,依旧调用此接口,去掉逻辑
	}
	/***
	 * 库存查验会员信息同步
	 * wancheng
	 */
	@Override
	public String uploadmember() {
		return TmsXmlResolveController.loadMember();
	}

}
